home *** CD-ROM | disk | FTP | other *** search
- /********************************* palette_init.c *************
- * by Hsuan Chang (hsc%vanderbilt@csnet-relay)
- * 7/1/87
- *
- * global variable initialization
- */
- #include "p_include.h"
-
- alette_init()
- {
- int i;
-
- xoff = 20;
- yoff = 10;
- xspace = 10;
- yspace = 10;
- cwidth = 12; /* was 25 */
- cheight = 12; /* was 25 */
-
- bar_offset = 30;
-
- undo_len = 0;
- selected_i = 0;
- selected_j = 0;
- selected_n = 0;
- hi = -9999;
- hj = -9999;
- highlighted = 0;
- selected = FALSE;
-
- /* initial colormap: grey ramp */
- for (i=0; i<MAX_CMAP_LEN; i++) {
- r[i] = (unsigned char) i;
- g[i] = (unsigned char) i;
- b[i] = (unsigned char) i;
- }
-
- }
-